import numpy as np

us_file_path = "./youtube_video_data/US_video_data_numbers.csv"
uk_file_path = "./youtube_video_data/GB_video_data_numbers.csv"

t1 = np.loadtxt(us_file_path,delimiter=",",dtype="int",unpack=True)
t2 = np.loadtxt(us_file_path,delimiter=",",dtype="int")

# 注意t1和t2的区别
print(t1)
print("*"*100)
print(t2)

print("*"*100)
print("transpose")
print(t2.transpose())
print("原来t2")
print(t2)
print("T")
print(t2.T)
print("swapaxes 0 1")
print(t2.swapaxes(0, 1)) # 两个结果是一样的
print("swapaxes 1 0")
print(t2.swapaxes(0, 1))

